/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package validacao;

import java.util.ArrayList;

/**
 *
 * @author Emanoel
 * Esta classe configura o validador semântico
 */
public class ConfigValidacaoSemantica {
    
    private String name;
    private ArrayList<String> columns;

    public ConfigValidacaoSemantica() {
        columns = new ArrayList<String>();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList<String> getColumns() {
        return columns;
    }

    public void setColumns(ArrayList<String> columns) {
        this.columns = columns;
    }
    
    public boolean possuiAtributo(String atributo){
        for(int i = 0; i < columns.size(); i++){
            if (columns.get(i).equalsIgnoreCase(atributo)){
                return true;
            }
        }
        return false;
    }
}
